package com.sljy.hzk.entity;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import java.io.Serializable;

/**
 * 任务主体
 * */
@Entity
public class TaskBodyEntity implements Serializable {

    @PrimaryKey
    @NonNull
    public int workPlanState;////未完成0/逾期1/已完成2
    public long userID;//用户Id
    public String date;//任务的中止时间
    public String dataJson;//数据的json数据

    public TaskBodyEntity(@NonNull int workPlanState, long userID, String dataJson) {
        this.workPlanState = workPlanState;
        this.userID = userID;
        this.dataJson = dataJson;
    }

    @NonNull
    public int getWorkPlanState() {
        return workPlanState;
    }

    public void setWorkPlanState(@NonNull int workPlanState) {
        this.workPlanState = workPlanState;
    }

    public String getDataJson() {
        return dataJson;
    }

    public void setDataJson(String dataJson) {
        this.dataJson = dataJson;
    }

    public long getUserID() {
        return userID;
    }

    public void setUserID(long userID) {
        this.userID = userID;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
}
